//企业简历详情基本信息
import React, { Component } from 'react'
import {
    View,
    Text,
} from 'react-native';

import { Cresumeskill_Style as styles } from '../../../../styles';
import Icon from 'react-native-vector-icons/Ionicons';

export default class Cresume_skill extends Component {
    constructor(props) {
        super(props);
    }
    render() {
        return (
            <View style={styles.ski_all}>
                <View style={styles.ski_onetop}>
                    <View style={styles.ski_topicon}>
                        <Icon
                            name={'md-color-palette'}
                            size={20}
                            color={'#ffffff'} />
                    </View>
                    <Text style={styles.ski_toptext}>技能展示</Text>
                </View>

                <View style={styles.ski_centerall}>
                    {this.xzResumeSkill(this.props.xzResumeSkills)}
                </View >
            </View>
        )
    }
    //期望行业：
    xzResumeSkill(List) {
        let arr = [];
        if (List != undefined) {
            for (let i = 0; i < List.length; i++) {
                arr.push(
                    <Text key={i} style={styles.ski_text}>
                        {List[i].skillName}
                    </Text>
                )
            }
        }
        return arr;
    }
}